package com.ktgj.service.mapper;

import java.util.List;
import com.ktgj.service.domain.ContractLinkAirportservice;
import org.apache.ibatis.annotations.Param;

/**
 * 合同机场服务关联			
Mapper接口
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
public interface ContractLinkAirportserviceMapper 
{
    /**
     * 查询合同机场服务关联			

     * 
     * @param contractAirportServiceId 合同机场服务关联			
ID
     * @return 合同机场服务关联			

     */
    public ContractLinkAirportservice selectContractLinkAirportserviceById(Long contractAirportServiceId);

    /**
     * 查询合同机场服务关联			
列表
     * 
     * @param contractLinkAirportservice 合同机场服务关联			

     * @return 合同机场服务关联			
集合
     */
    public List<ContractLinkAirportservice> selectContractLinkAirportserviceList(ContractLinkAirportservice contractLinkAirportservice);

    /**
     * 新增合同机场服务关联			

     * 
     * @param contractLinkAirportservice 合同机场服务关联			

     * @return 结果
     */
    public int insertContractLinkAirportservice(ContractLinkAirportservice contractLinkAirportservice);

    /**
     * 修改合同机场服务关联			

     * 
     * @param contractLinkAirportservice 合同机场服务关联			

     * @return 结果
     */
    public int updateContractLinkAirportservice(ContractLinkAirportservice contractLinkAirportservice);

    /**
     * 删除合同机场服务关联			

     * 
     * @param contractAirportServiceId 合同机场服务关联			
ID
     * @return 结果
     */
    public int deleteContractLinkAirportserviceById(Long contractAirportServiceId);

    /**
     * 批量删除合同机场服务关联			

     * 
     * @param contractAirportServiceIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteContractLinkAirportserviceByIds(Long[] contractAirportServiceIds);

    /**
     * 根据合同id、服务id查询该数据是否存在
     * @param contractId
     * @param serviceId
     * @return
     */
    public int selectAirportPrice(@Param("contractId") Long contractId ,@Param("serviceId") Long serviceId);
}
